DevJourney

C/Multiplication Table/DO WHILE/TABLE.C

#include<stdio.h>
#include<conio.h>
int main()
{
	int i=1,n,p;
	
	printf("Enter a number: ");
	scanf("%d",&n);
	do {
		printf("\n%d x ",n);
		printf("%d = ",i);
		p=i*n;
		printf("%d",p);
		i++;
	   } while(i<=10);
	getch();
    return 0;
}
View on GitHub